package com.hzy.admin.controller.base;

import com.hzy.admin.controller.ApiBaseController;
import com.hzy.admin.services.system.ISysRoleService;
import com.hzy.framework.annotation.SystemAuthority;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * 组件展示
 * 
 * @author hzy
 */
@Controller
@RequestMapping("/admin/component")
public class ComponentController extends ApiBaseController<ISysRoleService> {
    public ComponentController(ISysRoleService service) {
        super("9674d439-864e-4bf8-9dd8-08d7d70ad6bb", service, "/base/component/");
    }

    /**
     * 列表页面
     * 
     * @return 页面
     */
    @SystemAuthority()
    @GetMapping("/index")
    public String index() {
        return this.view("index");
    }
}